package com.huawei.gamebox.service.common.cardkit.card;

import android.content.Context;
import android.widget.RelativeLayout.LayoutParams;
import com.huawei.gamebox.service.common.cardkit.bean.BannerEntryCardBean;
import o.azb;
import o.exp$a;

public class CloverEntryLandscapeCardV2 extends BaseCloverEntryCardV2 {
    public CloverEntryLandscapeCardV2(Context context) {
        super(context);
    }

    protected int ˊ() {
        return (azb.ॱ(this.ˏ) - (((azb.ˏ(this.ˏ) + azb.ˊ(this.ˏ)) + (this.ˏ.getResources().getDimensionPixelSize(exp$a.ʼॱ) * 2)) + (this.ˏ.getResources().getDimensionPixelSize(exp$a.ˈ) * 2))) / 3;
    }

    protected void ˎ() {
        LayoutParams layoutParams = (LayoutParams) this.ॱ.getLayoutParams();
        layoutParams.height = (int) ((((float) ˊ()) * 9.0f) / 14.0f);
        this.ॱ.setLayoutParams(layoutParams);
    }

    protected String ॱ(BannerEntryCardBean bannerEntryCardBean) {
        return bannerEntryCardBean.ˑॱ();
    }
}
